import "./gt.css";

import { getData } from "../../../../api/getData";
import render from "./items.art";

const gtUrl = "https://www.imooc.com/api/mall-PC/index/group_tour";
const gtPanel = document.querySelector("#gtPanel");

getData(gtUrl)
  .then((res) => {
    const html = render(res);
    gtPanel.innerHTML = html;
  })
  .catch((err) => console.log(err));
